<?php
$_category = $this->getCurrentCategory();
$_sotreMod = Mage::getModel('silk_store/store');
$_store    = $_sotreMod->getStoreByCategoryId($_category->getEntityId());
$_productCategory = Mage::getModel('catalog/category')->load($_store->getProductCategoryId());
$_catHp    = Mage::helper('catalog/category');
?>
<div class="dianpu-content">
    <div class="dianpu-information-img">
        <div class="dianpu-Schematic-diagram">
            <ul>
                <li><a href="#"><img alt="store image" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . $_store->getImage() ?>"/></a></li>
            </ul>
        </div>
        <div class="dianpu-information-text">
            <div class="dianpu-information-text-left">
                <p><?php echo $_category->getName() ?></p>
            </div>
            <div class="dianpu-information-text-right">
                <a class="collect-store" href="javascript:void(0)" rel="<?php echo $_category->getEntityId() ?>"><span class="fa fa-star-o"> 收藏</span></a>
                <a href="#"><span class="fa fa-share-alt"> 分享</span></a>
            </div>
        </div>
    </div>

    <div class="dianpu-content-all-information">
        <div class="dianpu-content-address">
            <p>
               <span class="address-element1"><?php echo $this->__('地址:') ?></span>
               <span class="address-element2"><?php echo $_store->getAddress() ?></span>
            </p>
            <a href="#"><span class="fa fa-map-marker fa-4x"></span></a>
        </div>
        <div class="dianpu-content-phone">
            <p>
                <span class="address-element3"><?php echo $this->__('电话:') ?></span>
                <span class="address-element4"><?php echo $_store->getPhoneNumber() ?></span>
            </p>
            <a href="#"><span class="fa fa-phone fa-4x"></span></a>
        </div>
        <div class="dianpu-content-time">
            <p>
                <span class="address-element5"><?php echo $this->__('营业时间:') ?></span>
                <span class="address-element6"><?php echo $_store->getBusniessTime() ?></span>
            </p>
        </div>
    </div>

    <div class="dianpu-content-bottom-block">
        <a href="<?php echo $_catHp->getCategoryUrl($_productCategory)  ?>"><span><?php echo $this->__('全部商品') ?></span><i class="fa fa fa-angle-right fa-2x"></i></a>
        <div class="dianpu-content-bottom-service">
            <span><?php echo $this->__('商家服务') ?></span>
            <?php echo $_store->getServiers() ?>
        </div>
    </div>
</div>